Change the semantics of the format query parameter

Fixes #5