Test JPEGs in a way that's compatible between Ruby 1.8.7 and 1.9.x.
Distinguish between space and nbsp.