add encoding UTF-8 for resource filtering and compiling