Properly escape HTML entities in axis names