factor string message into constant
use function parameter to load file
load iana encoding file