fixes for when text from plugin is unicode