For parity with pgsp_store(), convert encoding

This is something that I touch upon in commentary on issue #17.