Add test for editing the sidebar, including multi-byte characters.
Fix editing of the sidebar with multi-byte characters.
Merge pull request #735 from ngyuki/fix-edit-for-multibyte

Fix `Encoding::CompatibilityError` of edit view.