Big fix

Better support for unicode: tests added
ASUnit for testing
Bug fix in encodeString — Escaping of quotes did not occur