128
128
# This is fairly optimized because we know what cElementTree does, this is
129
129
# not meant as a generic function for all cases. Because it is possible for
130
130
# an 8-bit string to not be ascii or valid utf8.
132
132
return _encode_utf8(a_str)