Allow user to specify charset