PDF/XPS: tweak space insertion heuristic (fixes issue 2486)