Strip additional charaters in the hash

The length of a site transient should be less than [40 characters](https://core.trac.wordpress.org/ticket/15058).

The formatting.php file defines sanitize_option() which is used by update_site_option().