Fixes a number of unicode issues.
Fixes a number of unicode issues