fix(core): overwriteMode: replace
has incorrect behavior on attempt to insert invalid characters
#2529
Loading