Try to handle endstream with no preceding newline
Handle #-escaped liternal names