Optimization of performance for V8

Benchmark: http://jsperf.com/new-strftime/3