Fixed use of Write parameters to print strings instead of bytes