Converting mode string to integer

I noticed some odd behavior when I updated to the latest version of s3_file. When the mode is converted from string to integer, it was converting it from octal to decimal (so "0644" became 1204). Converting the string to a base 8 integer corrected the issue.