Fixed printing of strings with some special characters.