add controller code to this lib...
encode strings in case there's utf-8 in them there names....