Rep 997

This should clear up the 500s for bad URIs