output now displays proper characters