Did you see my comment about not upcasing the encoding's name? I could be wrong, but I don't think that should be necessary.