Fixed bug where entering input as <filename>/ would cause repeated '/' character