use 'utf-8-sig' when BOM detected
I'm not exactly sure why the utf-8 encoding is specified (PYTHONUTF8
environment variable can be used too). Since it's specified, the it will fall when the QML files are using UTF-8 with BOM. This patch try to detect BOM and use 'utf-8-sig' if BOM is detected.
Edited by Gary Wang