Fixed bugs with writeln(octet string)