strip \n and \r from json output