Fix issue importing JSON strings containing line breaks.

Fixes #59