Throw the right kind of exception when invalid unicode is provided