fix display of non-latin tags
tolerate a str arg to writeData()