Function std::char::len_utf8_bytes

pub fn len_utf8_bytes(c: char) -> uint

Returns the amount of bytes this character would need if encoded in utf8