Correctly handle special characters in page aliases (see #6232)