Fixed problem of converting more thant 256 chars.