fixed encoding issue with bracket js