update to use dart:convert library for encoding
Merge pull request #3 from selkhateeb/convert

update to use dart:convert library for encoding