See the comment above this code, the purpose of this test is to ensure that the documentation format isn't arbitrarily changed since Swagger depends on it for generating their API documentation.  I don't think there's any reason to add (encode = true) to the documentation.