fix the problem about parsing GSV sentence may cause OFB exception

This commit try to fix two issue.
1. fix the issue may cause OFB exception.
2. fix the issue about sentence my have different end of line according diff platform.