Updated to newer Rust: changed static -> const, and using newer std::string::from_buf function