[enh] Rely on format string method for ask_string encoding in hook
[enh] Catch all exceptions while executing app install script