Fixed escape utility when the string was null