Resolve utf-8 problem with Qt version < 5