make HashDict map from str to bytes