Rename methods -detectEncoding: to -encodingWithData:, add -encodingAsStringWithData: