fixed assignment of _allowed_characters as range type in set_property method