Fix some unicode and parsing issues.