Fix inner page anchor and encoding