Fixed file_directory and file_name segments on python-3.3

str() object has no attribute .decode()