clean up and switch to unicode character code