handling filenames with ':'

PR to the master branch, because I couldn't find any dev branch.
I checked following special characters:
`, / ? : @ & = + $ #`
and only `:` made an error.
In this case, I implemented the solution only for `:`, but it doesn't mean that it is an only problematic special character.