Fixed index too long error when index_name_length < Digest::SHA1.hexdigest(index_name)

[Closes #226]