[CS] Remove niceogiri dependency by bringing in everything we need from it