[FLINK-1336] [core] Fix bug in StringValue binary copy method