URLEncode filenames to be compatible with special characters

@tobiasKaminsky As requested - please test.
@th3fallen Up for a review?