Trying to auto-detect pac encoding