Fixed htmlspecialchars under browsers that iterate over associative arrays in sorted order