This is probably better as an enum (`enum UTF8Mode { Strict, Replacement, Ignore }`), unless there was a particular reason for using the constants?