[compat] to_utf8_str now returns Option<Result> following types from std::str::to_utf8