Fixes a number of unicode problems