generalized encoding

allow specifying specific encoding settings per domain
set up tox
Merge pull request #2 from afflux/encoding

Add encoding and customizable alphabets