Err buf char to string

RunQuery is converted to use strings.

DoStringQuote uses strings as well.