Fix to display text in RTL direction in reverse

Letters of text that has an RTL direction, will be parsed in reverse
order. Borrowed from
https://groups.google.com/forum/#!msg/dompdf/qfWb24ct7Ts/5_KKgc2ufqQJ