Improve debugging for htmlspecialchars debug