Fixed RPA ignoring file prefixes
Fixed encoding