fixed segfault in from_string() fncs in Utils.cc

- bug introduced in 5c6ddf09bd32ccbd8ce779994a948448811b41bd

(cherry picked from commit 4e085d76c0a462f99176f6caa1621323c8c0ec13)