Ensure 'arg' is a string.