better pg locale handling