fixed the unicode->ascii encoding error that was happening