also deal with postgis db enc