Fix #20. Throw error if trying to encode a folder or file that contains a space in filename