Implemented the option to pass the parameters "encoding" and "locale".