Fix bug when printing non-strings.