This PR adds functionality to try other common encodings if an error related to the encoding is raised and the user has not specified an encoding.