Clean up the conversion of unicode to ascii

The unicodedata package does a great job with a best representation of
unicode in ascii, so we can use this instead of struggling with specific
code page issues.