[Device] implement sm_qiwo_device_registration API

* add internal function 'sm_url_encode'