Define charset: always use explicitly because different machines use
different defaults.
Move 'getProfileLocationKey' to credentials