Change safe_demangle to use status codes instead of a bool result.