modified amf3reader ReadString method