Added safe_copy_string.
Merge branch '1.8'.