remove nonprintables and improve read

Merged Marek Ostaszewski requested to merge code_update into master

Merge request reports