fixed bug in parsing escaped chars