Added type safe_string_free.
Added a warning message.
Merge branch '1.8' into 1.9.