[ticket/13280] Properly format the current page and add sanitizer to tests

Ticket: https://tracker.phpbb.com/browse/PHPBB3-13280
Or use $sanitizer in $server_sanitizer to avoid a call to array_walk_recursive?