[FLINK-1168] Added support for multi-char delimiters.
This commit includes parts of Cbro's pull request.