Fixes to escape/encode all ajax strings.