Fix #49: Regression in SearchEngine.replace(), also adding doc improvements for TextEditorPane w.r.t. saving UTF-8 files without BOMs