[calc] Properly support unicode

Issue #240