don't urldecode get var, php does this automatically
remove empty line
Fixed double file encoding for previews
Merge pull request #6726 from owncloud/fix_6630

don't urldecode get var, php does this automatically