Text to string fix

Fix the Metadata string_to_text() to work correctly, and update the PDFText._escape() method to be the same. Using a list of tuples makes sure the items are in the correct order.