BUGFIX: Issue #16
Updated value_to_string method to check if 'raw' attribute exists.