fixed escape character parsing