Change Encoder::detectEncoding() to Encoder::detect() and minor docstring fixes.