Correct buffer overrun reading CSS and JS files.