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

TODO: add multi-char delimiters to API