Report error in case of incorrectly encoded terms

Fixes #41

This bug was located at the code that parses the command terms.
If a term is invalid with respect to the current locale settings,
an "Unknown error" was being raised.
Kamaki is now reporting a descriptive error with a reference to
the faulty term.

Suggested reviewer: @iliastsi