mozSettings supports saving Blobs, there's no need to convert the resource to a string here.