multiple input and better printing of non-ascii characters