Fixed so that functions are not serialized in URL encoding.