Make Method a valid hash key