Add tests for utf8.fromChr exceptions
Fix utf8.fromChr exceptions