Made workaround for weird bug with extra characters being added to JSON
strings.