Fixed bug in prefixstream to handle carriage returns.