Update gem dependencies and ensure that parameters aren't modified when encoding.