Maybe add an extra check
`} else if (typeof Buffer !== 'undefined') {`

And throw an error if we can't base64 encode:
`} else { throw new Error('FS.File.url Error: Cannot base64 encode on your system')`