>
> For which ones?
>
> $ cd 'Hi!
> I am a directory.
> You can ls me.'
>
> $ pwd
> /var/tmp/Hi!
> I am a directory.
> You can ls me.
>
> $ ls
> foo
>
Only '\r' and '\n' are not allowed in the path. Everything else should
work. Also, this behaviour can be modified as well by Scanner instead of
BufferedReader.