fixed error in long escaped string buffer