Added file encoding support with options and autodetection
Minor changes to katywings' encoding PR

Closes #95
Version 0.0.41