Fixes error message for type with unicode