removed unused custom exception
fixed encoding method to only decode(utf8) on non-unicode strings