fix gsub to escape