Replaced @docs toString with @docs encode.

This was causing an error on the docs page.

Fixes: https://github.com/elm-lang/core/issues/24