fixed type conversion issue for bitbucket file, string to byte array