fix ie8 issue with calling Object.defineProperty on String