Work around 'zero length field name in format' bug

Bug only present in Python 2.6 and earlier