Process bytea through proper escaping

This actually fixes COPY on 8.4