avoid zero-length fields in strings formatting (2.6 compat issue)