WP newline fix

fixes issue #118 where data contains newline characters are not probably
serialized to json.