Properly escape all function arguments