Some fixes in handling of encodings

Hello Colby, 
currently I am examining fo-dicom, I want to use it in one of our projects.
During my tests I found some missing support of encodins.
The source code is available, so I decided to fix this.
I hope, you can use the changes. 
Please give some feedback, even if you decide not to use the changes.
Hope to hear from you.
Lars