fixed bug in strftime locale decoding. closes #4