fixed encoding of input/output-streams