Fixed deprecated use of % for string formatting