Testcase and fix for reader bug in IO class: https://jira.codehaus.org/browse/GROOVY-7132 

This is the pull request created for https://jira.codehaus.org/browse/GROOVY-7132. 
Please verify and give feedback.