Ugly. get_prop always returns non-const, because the strings are internally allocated. Sometimes, it has to have the choice to return defval, which technically should be a const.