add test cases for dirty uri, and add fix code
Merge pull request #4 from tagomoris/dirty_queries

add test cases for dirty uri, and add fix code