putStr package:encoding

Like the normal hPutStr, but encodes the output using an encoding.