bindEvent, getValue: Fix wrong use of the utf8 string, which breaks in release builds