Bug 1047350 - Issue format() edify depending on SDK version

nit: I'd like to see a comment here explaining why we need to do this dance. It can be figured out from the code but it's easier if we just have a small comment that mentions format() taking different arguments depending on the SDK version.