Encode primitives only when :return specified
test to make sure ring-middleware-format is working