add encoding option in Regexp in LATEXBuilder