Loading jpegs in html

Hi all,

I am loading images into an html textField like so:

    txt.htmlText = "<img src='bla/bla/bla.jpg'>";

this works fine aside for the times when the file extension is jpeg, with an “e”.
In that case the image wont load. Note that the image is fine, and if i simply rename it to jpg, no e, it will load fine.
I cant just change the filename, because these are dynamically added images which i dont necessarily have control over.

Is there a way around this annoyance?