internal tidying
allow users to force an encoding for raw data before processing