It looks like a problem with postgres, if there are no databases yet, you probably could run initdb again, man initdb and set the encoding... if you are using that pg (for something else) you can initdb (with proper encoding) and run a separate postmaster on that location