Fix escaping bug in update profile