changed the printing of the output to the stdout to support any kind of characters

Signed-off-by: Sanidhya Kashyap <sanidhya.k@gmail.com>