Made external functions Unicode compatible