This is useful to limit the filename to a certain number of bytes rather than characters Closes #1003