getContents package:encoding

Like the normal hGetContents, but decodes the input using an encoding.