Fixes scalatra/scalatra#419