Fix JSON encoding issues.

See #15.

Basically, we should use options in `json_encode` as opposed to trying to be too fancy with `str_replace`. This allows us to conform to [parsely-page specs](http://www.parsely.com/docs/integration/metadata/ppage.html#technical-caveats).