Added regular expression to replace encoded characters when looking up
stuff in hash maps.