Changed [] to .charAt in translateFormat for IE7 compatibility

Useful library, thanks! It seems to work fine in IE7 apart from this.