Use URI.encode_www_form() instead of URI.encode() for mailto query parameters. This is the safer choice for query parameter encoding. Add comment about mailto URL length limits that vary by email client.