Removed naive space replacement bug

Previous implementation replaced spaces outside `mtext` tags with xml space entity (&amp;#x00A0;) which broke the MathML syntax. Now the spaces are not replaced, only a space entity is added at the beginning and end of mtext tags to add a bit of spacing between the text and math parts in rendered PNG. 

@masatomo please review.