fixed incorrect printing of specs with %X characters in them