Convert bracket maching functions to use runes instead of bytes