fixed orphan trailing & in URLs messing up base href and friends, closes #334