Character encoding support for Rust