Add class=logo to the logo, so it gets hit by the CSS stylesheet properly.
Switch a few string indexes to slices, so they don't fail on too-short strings.