fix convert_to_original_url for many times redirect
Merge pull request #1 from kkabetani/fix-redirect