decode hash strings to save more memory