return 500 on bad request URI - closes #253