Fixes for permalinks not working on Firefox

Sigh. It’s frustrating that the few browser differences I’m running
into in 2014 are mostly horribly familiar from 2005