Implemented very fast string escape method
Fixed coding anti-pattern