add force_encoding option