Fixes string() bug

There was some poor code to parse some XML. Not many publishers use the
element, so it hasn't shown up unitl now.