pub fn decode_reference_literal(literal: &str) -> Result<String, &'static str>
Decodes a complete literal, rejecting malformed UTF-8 and unsupported versions.