(QENG-1087) beaker - failure in XML output

- caused by improperly stripping unsupported unicode characters from xml
  output
- add inclusion of 'jcode' for ruby 1.8 (included with Ruby and adds
  lots of useful Unicode-oriented features to String and Regexp)
- tested on 1.9 and 1.8 and correctly replaced invalid unicode with
  escaped hex value
I think this is worth breaking out into a do; end style block with an actual if/then/else and a local var for the unpacked joined utf-8 values.  It's just kind of a dense line.