Changing function used to escape instead of stripping