Escape form data based on RFC 3986

This fixes 401s with Twitter API v1.1
Fix some XML doc comments