Removing control chars from response in order to prevent JSON.parse to fail