[fix] Encode strings before concatenation to ask_string in hook