Fixed ascii codec - Unicode error.
Cannot print unicode object to file without first encoding to string with UTF-8 encoding.