add force encoding option