Fixed assertion that was caused by broken encoder since Windows does not support "%zu" string formatting.