cleaned up the unicode functions