How to fix Invalid character value for cast in PostgreSQL | DevErrors