fixing php escapes