Fixed unicode errors when passing in unicode strings and added tests