Fixed problems with parsing entities to apostrophes in the footer and head code.