Handle unencodable floats.

(NAN, INF, -INF)

Fixes #51