Don't crash when the page contains invalid characters