printing now works with file handling

the "echo"-workaround was inable to print null bytes which are
used in control sequences. using the pinter device as a file works
fine, although you have to append a newline at the end of the data
to be printed.