See also https://bugzilla.redhat.com/show_bug.cgi?id=214969 The sum of it is that we need to escape any character with an ordinal less than space.
This has been accomplished along the migration of repodata generation process to Java/taskomatic.