Encode appendix when uploading file

When a file should be uploaded it is first checked, if this file does
not yet exists on the server. If this is the case a version number is
put behind the filename. This appendix should also be encoded with
urlEncode()