Throw error when syslog is requested but cannot be opened.
Also urlencode already base64 encoded file contents, since
base64 contains / and = characters.