format fails with empty string on Python2.6