language hash: added exception on key length limit, added protection from misconfigured app