cast content-length for the `size` attribute, fixes #136