Updated to set sane defaults if we are unable to load the requested encoding