cloudmonkey: fix error handling and unicode string conversions

Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>