Fixed crashes on decoding unicode