ascii UNICODE.decode quick fix.

params are utf-8. and need to be decoded to unicode to avoid ascii UNICODE.decode error.
Done just for filename but might be useful in all params.