Start porting character resource implementation from master.