Fix the metadata string escape generation by using the PDFText._escape
method. 

Simplify the PDFText._escape() method to get the escapes in the correct
order with one loop.
Revert to copy of PDFText._escape()
Merge pull request #11 from tjoneslo/text_to_string_fix

Text to string fix