Don't complain about unknown phases (fixes #3)
Include trailing newline in output (fixes #4)
Support single string phases