Fixed bug that prevented hashes with special character from working; made precent global