In CWB 3.4+, cwb-encode requires character encoding to be declared, validates input (to some extent) and converts UTF-8 strings to standard normalized form. cwb-s-encode should do the same for an attribute with annotations and require an encoding declaration in this case.
Done.