Snatch auich_query_encoding() function.

Need new version Ajhc.
https://github.com/ajhc/ajhc/issues/71