be a bit safer when converting functions to strings.