Add encoding support

Hi, 

Happy to find that package !
Since Atom 0.141.0, Encoding is supported, so it was easy to add this missing functionnality.

Hope you'll merge this pull request easily

Regards
What happens if the user supplies an unsupported value? Will Atom default to utf8?