fixed an issue where spaces in paths would break routing w/o index.php, closes #280