Make replace operation multi-byte safe
Set cursor on end of inserted word after replace
Add more loading guards

* Compatible mode
* unite function not found
Abort replace action on error