add a hack lib to force encoding