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

fixes #136