fixed getSiteEncoding() deprecation warning