Fixed issue when not all data is sent due to character encoding issues.