fixed bug where unicode characters were crashing the plugin