Attempting to auto-determine the current string encoding