Why is this fall back needed and should then the details variable be URL encoded as well?