Separating the un/escaping functions into C and K.