Use proper formatting syntax, fixes #2170