Fix base64enc to be able to read from command line

If no argument is specified then input is defaulted to stdin.