Support reading from standard in

This fixes #8.