Fix unicode error messages on py2