Fixes unicode/str issue on type creation