fixed error in detectEncoding doc