Force safe string ending.