Validate format strings at compile time.