fix: crash in case key contains non ascii char