port of csvquote to awk. no command line options support yet. it's slow
add percent sign to make sure awk is handling it properly
speed improvements, reducing use of for loops
refactor to remove a global variable
only concatenate when replacing a character