Don't use internal.BytesToString with buffers used in queries

SQL drivers might not use the string immediately, so we can't use the
internal buffer pointers because the might get modified as soon as
the the buffer is reused.