Handle postgres conversion from text to binary