Fixed typo in detect_utf_encoding method. fixes #2