Reintroduced some duplication because SHA1 has problems with language tagged strings