Fix postgres source encoding while using convert function