replace CGI.escape with Nyara::Ext.escape in Object#to_query