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
Merge pull request #1 from Prezent/rtl

Fix to display text in RTL direction in reverse