handle charset of payload correctly