Properly concatenate large files read from stdin

See #564.
Any way of using the function constructor to create a function string that is as large as you need? This would avoid the need to commit a huge file.