Add obfuscate_templates option, fix #3902